package com.itheima.appserver.excepiton;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class MyEx extends RuntimeException {

    private ErroResult erroResult;

    public MyEx(ErroResult erroResult){
        super(erroResult.getErrorMessage());
        this.erroResult =  erroResult;
    }
}
